#ifndef __MPU9250_H__
#define __MPU9250_H__

#include "includefile.h"

#define mpu9250_write_reg(devaddr,regAddr,readValue)  IIC_write_byte(devaddr,regAddr,readValue)
#define mpu9250_read_reg(devaddr,RegAddr)             IIC_read_byte(devaddr,RegAddr)
#define mpu9250_read_multiple_reg(devaddr,RegAddr,RxBuffer,RxLenth)         IIC_read_bytes(devaddr,RegAddr,RxBuffer,RxLenth)
#define mpu9250_delay_ms(x) Delay_ms(x)
uint8_t mpu9250_Init(void);
extern void mpu9250_mag_read_data(S_INT16_XYZ * mag);
extern void mpu9250_mpu_read_data( S_INT16_XYZ * acc,S_INT16_XYZ * gyo);
extern void mpu9250_set_gyo_offset(int16_t x,int16_t y,int16_t z);
#endif
